package com.ruoyi.etp.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 员工设备状态对象 etp_employee_devices
 *
 * @author xmj
 * @date 2025-09-09
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class EtpEmployeeDevices extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** ID */
    @TableId(type = IdType.AUTO)
    private Long id;
    /** 员工名称 */
    @Excel(name = "员工名称")
    private String employeeName;
    /** 设备号 */
    @Excel(name = "设备号")
    private String deviceId;
    /** 设备版本号 */
    @Excel(name = "设备版本号")
    private String deviceVersion;
    /** 电量 1.低 2.中 3.高 */
    @Excel(name = "电量 1.低 2.中 3.高")
    private Long batteryLevel;
    /** 所属组织 */
    @Excel(name = "所属组织")
    private Long deptId;
    /** 最近心跳 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最近心跳", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastHeartbeat;
    /** 是否在线 */
    @Excel(name = "是否在线")
    private Integer isOnline;
    /** 状态 0.闲置,1.离线,2.正在接待 */
    @Excel(name = "状态 0.闲置,1.离线,2.正在接待")
    private Long status;
    /** 待上传文件 */
    @Excel(name = "待上传文件")
    private Long pendingUpload;
    /** 剩余存储空间(KB) */
    @Excel(name = "剩余存储空间(KB)")
    private Long storageRemaining;
    /** 信号值 */
    @Excel(name = "信号值")
    private Long signalStrength;
    /** 录音总时长(秒) */
    @Excel(name = "录音总时长(秒)")
    private Long totalRecordingDuration;
    /** 录音次数 */
    @Excel(name = "录音次数")
    private Long recordingCount;
    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;
    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("employeeName", getEmployeeName())
            .append("deviceId", getDeviceId())
            .append("deviceVersion", getDeviceVersion())
            .append("batteryLevel", getBatteryLevel())
            .append("deptId", getDeptId())
            .append("lastHeartbeat", getLastHeartbeat())
            .append("isOnline", getIsOnline())
            .append("status", getStatus())
            .append("pendingUpload", getPendingUpload())
            .append("storageRemaining", getStorageRemaining())
            .append("signalStrength", getSignalStrength())
            .append("totalRecordingDuration", getTotalRecordingDuration())
            .append("recordingCount", getRecordingCount())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
        .toString();
    }
}
